package com.haierp.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

@TableName("erp_order")
public class ErpOrder implements Serializable {

	@TableId(type = IdType.AUTO)
	private Long id;
	@TableField(value = "outer_order_id")
	private Long outerOrderId;
	@TableField(value = "open_id")
	private String openId;
	@TableField(value = "outer_detail_order_id")
	private Long outerDetailOrderId;
	@TableField(value = "target_no")
	private String targetNo;
	@TableField(value = "order_no")
	private String orderNo;
	@TableField(value = "erp_no")
	private String erpNo;
	private Integer status;// 订单状态
	@TableField(value = "stock_status")
	private Integer stockStatus;
	private String upc;
	@TableField(value = "sku_id")
	private Long skuId;
	@TableField(value = "sku_code")
	private String skuCode;
	@TableField(value = "sales_id")
	private Long salesId;
	@TableField(value = "sales_name")
	private String salesName;
	@TableField(value = "item_id")
	private Long itemId;
	@TableField(value = "item_name")
	private String itemName;
	@TableField(value = "order_time")
	private Date orderTime;// 销售时间
	private String color;
	private String scale;
	private Double freight;
	private Double weight;
	@TableField(value = "sale_price")
	private Double salePrice;
	private Integer quantity;
	@TableField(value = "shipping_order_id")
	private Long shippingOrderId;
	@TableField(value = "shipping_no")
	private String shippingNo;
	@TableField(value = "erp_return_order_id")
	private Long erpReturnOrderId;
	@TableField(value = "close_reason")
	private String closeReason;
	@TableField(value = "gmt_create")
	private Date gmtCreate;
	@TableField(value = "gmt_modify")
	private Date gmtModify;
	@TableField(value = "user_create")
	private String userCreate;
	@TableField(value = "user_modify")
	private String userModify;
	private String receiver;
	@TableField(value = "address_detail")
	private String addressDetail;// 地址详情
	private String telephone;
	private String postcode;
	private String remark;
	

	
	//发货仓库ID
	@TableField(value = "warehouse_id")
	private Long warehouseId;
	//发货仓库名称
	@TableField(exist = false)
	private String warehouseName;
	@TableField(value = "receiver_state")
	private String receiverState;// 省
	@TableField(value = "receiver_city")
	private String receiverCity;// 市
	@TableField(value = "receiver_district")
	private String receiverDistrict;// 区
	@TableField(value = "id_card")
	private String idCard;// 身份证号码
	@TableField("idcard_pic_front")
	private String idcardPicFront;//身份证正面
	@TableField("idcard_pic_reverse")
	private String idcardPicReverse;//身份证反面
	@TableField(value = "purchase_price")	//采购价(裸价)
	private Double purchasePrice;
	@TableField(value = "sku_pic")
	private String skuPic;
	@TableField(exist = false)
	private String brand;
	@TableField(value = "logistic_type")
	private Integer logisticType;
	@TableField(exist = false)
	private String positionNo;
	@TableField(exist = false)
	private String categoryId;
	@TableField(exist = false)
	private String categoryName;
	@TableField(exist = false)
	private String logisticNo;
	@TableField(exist = false)
	private String logisticCompany;
	
	@TableField(exist = false)
	private String nickName;
	
	@TableField(exist = false)
	private Integer type;

	@TableField(exist = false)
	private Date pkgGmtCreate;
	
	@TableField(value = "third_sku_code") // 第三方sku
	private String  thirdSkuCode;
	
	@TableField(value = "purchase_status") //采购状态
	private Integer purchaseStatus;
	
	@TableField(value = "company_id") //所属公司
	private Long companyId;
	
	@TableField(exist = false)
	private String itemCode; //商品code
	
	@TableField(value = "stock_date") //备货完成时间
	private Date stockDate;
	
	@TableField(exist = false)
	private Boolean isSlowly;
	
	@TableField(exist = false)
	private String nikeName;
	
	@TableField(exist = false)//未备货数量
	private int unstockCount;
	
	
	@TableField(exist = false)
	private boolean ifSpiltAction = false;
	
	@TableField(value = "pay_status")// 是否结算
	private Integer payStatus;
	
	@TableField(value = "balance_remark") // 结算备注
	private String  balanceRemark;
	
	
	@TableField(exist = false)//是否组合商品
	private Integer unitItem;
	
	@TableField(exist = false)//组合数量
	private Integer unitQuantity;
	
	@TableField(exist = false)
	private String buySite;
	
	public Boolean getIsSlowly() {
		return isSlowly;
	}
	public void setIsSlowly(Boolean isSlowly) {
		this.isSlowly = isSlowly;
	}
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getOuterOrderId() {
		return outerOrderId;
	}

	public void setOuterOrderId(Long outerOrderId) {
		this.outerOrderId = outerOrderId;
	}
	
	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public Long getOuterDetailOrderId() {
		return outerDetailOrderId;
	}

	public void setOuterDetailOrderId(Long outerDetailOrderId) {
		this.outerDetailOrderId = outerDetailOrderId;
	}



	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public String getErpNo() {
		return erpNo;
	}

	public void setErpNo(String erpNo) {
		this.erpNo = erpNo;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getStockStatus() {
		return stockStatus;
	}

	public void setStockStatus(Integer stockStatus) {
		this.stockStatus = stockStatus;
	}

	public String getUpc() {
		return upc;
	}

	public void setUpc(String upc) {
		this.upc = upc;
	}

	public Long getSkuId() {
		return skuId;
	}

	public void setSkuId(Long skuId) {
		this.skuId = skuId;
	}

	public String getSkuCode() {
		return skuCode;
	}

	public void setSkuCode(String skuCode) {
		this.skuCode = skuCode;
	}

	public Long getSalesId() {
		return salesId;
	}

	public void setSalesId(Long salesId) {
		this.salesId = salesId;
	}

	public String getSalesName() {
		return salesName;
	}

	public void setSalesName(String salesName) {
		this.salesName = salesName;
	}

	public Long getItemId() {
		return itemId;
	}

	public void setItemId(Long itemId) {
		this.itemId = itemId;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public String getScale() {
		return scale;
	}

	public void setScale(String scale) {
		this.scale = scale;
	}


	public Double getFreight() {
		return freight;
	}

	public void setFreight(Double freight) {
		this.freight = freight;
	}

	public Double getWeight() {
		return weight;
	}

	public void setWeight(Double weight) {
		this.weight = weight;
	}

	public Double getSalePrice() {
		return salePrice;
	}

	public void setSalePrice(Double salePrice) {
		this.salePrice = salePrice;
	}

	public Integer getQuantity() {
		return quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

	public Long getShippingOrderId() {
		return shippingOrderId;
	}

	public void setShippingOrderId(Long shippingOrderId) {
		this.shippingOrderId = shippingOrderId;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModify() {
		return gmtModify;
	}

	public void setGmtModify(Date gmtModify) {
		this.gmtModify = gmtModify;
	}

	public String getUserCreate() {
		return userCreate;
	}

	public void setUserCreate(String userCreate) {
		this.userCreate = userCreate;
	}

	public String getUserModify() {
		return userModify;
	}

	public void setUserModify(String userModify) {
		this.userModify = userModify;
	}

	public String getTargetNo() {
		return targetNo;
	}

	public void setTargetNo(String targetNo) {
		this.targetNo = targetNo;
	}

	public String getReceiver() {
		return receiver;
	}

	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}


	public String getAddressDetail() {
		return addressDetail;
	}

	public void setAddressDetail(String addressDetail) {
		this.addressDetail = addressDetail;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getPostcode() {
		return postcode;
	}

	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}


	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Long getWarehouseId() {
		return warehouseId;
	}

	public void setWarehouseId(Long warehouseId) {
		this.warehouseId = warehouseId;
	}

	public String getWarehouseName() {
		return warehouseName;
	}

	public void setWarehouseName(String warehouseName) {
		this.warehouseName = warehouseName;
	}

	public String getReceiverState() {
		return receiverState;
	}

	public void setReceiverState(String receiverState) {
		this.receiverState = receiverState;
	}

	public String getReceiverCity() {
		return receiverCity;
	}

	public void setReceiverCity(String receiverCity) {
		this.receiverCity = receiverCity;
	}

	public String getReceiverDistrict() {
		return receiverDistrict;
	}

	public void setReceiverDistrict(String receiverDistrict) {
		this.receiverDistrict = receiverDistrict;
	}

	public Double getPurchasePrice() {
		return purchasePrice;
	}

	public void setPurchasePrice(Double purchasePrice) {
		this.purchasePrice = purchasePrice;
	}
	
	public String getIdCard() {
		return idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	public String getIdcardPicFront() {
		return idcardPicFront;
	}
	public void setIdcardPicFront(String idcardPicFront) {
		this.idcardPicFront = idcardPicFront;
	}
	public String getIdcardPicReverse() {
		return idcardPicReverse;
	}
	public void setIdcardPicReverse(String idcardPicReverse) {
		this.idcardPicReverse = idcardPicReverse;
	}
	public String getSkuPic() {
		return skuPic;
	}

	public void setSkuPic(String skuPic) {
		this.skuPic = skuPic;
	}

	public Integer getLogisticType() {
		return logisticType;
	}

	public void setLogisticType(Integer logisticType) {
		this.logisticType = logisticType;
	}

	public Date getOrderTime() {
		return orderTime;
	}

	public void setOrderTime(Date orderTime) {
		this.orderTime = orderTime;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getShippingNo() {
		return shippingNo;
	}

	public void setShippingNo(String shippingNo) {
		this.shippingNo = shippingNo;
	}

	public String getPositionNo() {
		return positionNo;
	}

	public void setPositionNo(String positionNo) {
		this.positionNo = positionNo;
	}

	public Long getErpReturnOrderId() {
		return erpReturnOrderId;
	}

	public void setErpReturnOrderId(Long erpReturnOrderId) {
		this.erpReturnOrderId = erpReturnOrderId;
	}

	public String getCloseReason() {
		return closeReason;
	}

	public void setCloseReason(String closeReason) {
		this.closeReason = closeReason;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	public String getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(String categoryId) {
		this.categoryId = categoryId;
	}

	public String getLogisticNo() {
		return logisticNo;
	}

	public void setLogisticNo(String logisticNo) {
		this.logisticNo = logisticNo;
	}

	public String getLogisticCompany() {
		return logisticCompany;
	}

	public void setLogisticCompany(String logisticCompany) {
		this.logisticCompany = logisticCompany;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getThirdSkuCode() {
		return thirdSkuCode;
	}

	public void setThirdSkuCode(String thirdSkuCode) {
		this.thirdSkuCode = thirdSkuCode;
	}

	public Date getPkgGmtCreate() {
		return pkgGmtCreate;
	}

	public void setPkgGmtCreate(Date pkgGmtCreate) {
		this.pkgGmtCreate = pkgGmtCreate;
	}

	public Integer getPurchaseStatus() {
		return purchaseStatus;
	}

	public void setPurchaseStatus(Integer purchaseStatus) {
		this.purchaseStatus = purchaseStatus;
	}

	public Long getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Long companyId) {
		this.companyId = companyId;
	}

	public String getItemCode() {
		return itemCode;
	}

	public void setItemCode(String itemCode) {
		this.itemCode = itemCode;
	}

	public Date getStockDate() {
		return stockDate;
	}

	public void setStockDate(Date stockDate) {
		this.stockDate = stockDate;
	}
	public String getNikeName() {
		return nikeName;
	}
	public void setNikeName(String nikeName) {
		this.nikeName = nikeName;
	}
	public int getUnstockCount() {
		return unstockCount;
	}
	public void setUnstockCount(int unstockCount) {
		this.unstockCount = unstockCount;
	}
	public boolean isIfSpiltAction() {
		return ifSpiltAction;
	}
	public void setIfSpiltAction(boolean ifSpiltAction) {
		this.ifSpiltAction = ifSpiltAction;
	}
	public Integer getPayStatus() {
		return payStatus;
	}
	public void setPayStatus(Integer payStatus) {
		this.payStatus = payStatus;
	}
	public String getBalanceRemark() {
		return balanceRemark;
	}
	public void setBalanceRemark(String balanceRemark) {
		this.balanceRemark = balanceRemark;
	}
	public Integer getUnitItem() {
		return unitItem;
	}
	public void setUnitItem(Integer unitItem) {
		this.unitItem = unitItem;
	}
	public Integer getUnitQuantity() {
		return unitQuantity;
	}
	public void setUnitQuantity(Integer unitQuantity) {
		this.unitQuantity = unitQuantity;
	}
	public String getBuySite() {
		return buySite;
	}
	public void setBuySite(String buySite) {
		this.buySite = buySite;
	}
	
	
}
